package com.hx.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author: 若若叶
 * @date: 2021/9/15 17:18 FileName: Tiger Description:
 */
@Component
public class Tiger {
  @Value("牛七")
  private String name;

  @Value("黄")
  private String color;

  public void setName(String name) {
    this.name = name;
  }

  public void setColor(String color) {
    this.color = color;
  }

  @Override
  public String toString() {
    return "Tiger{" + "name='" + name + '\'' + ", color='" + color + '\'' + '}';
  }
}
